<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Controller_Resources extends Controller_Template {
	public function actionIndex() {
		$this->template->title = 'BUSINESS RESOURCES-'.$this->settings['title'];
		$this->template->content = new View('resources/index');
		$content = Model::factory('directory')->getItemByToken('x55', 'text');
		$this->template->content->resourcesText = $content;
		$categories = Model::factory('directory')->getCategories('resources', 'position', 'ASC');
		$this->template->content->categories = $categories;
		$items = Model::factory('directory')->getItemsByCategory('resources', 'position', 'ASC');
		$this->template->content->items = $items;
	}
}
?>